<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib  prefix="html" uri="http://struts.apache.org/tags-html-el"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Lista Tags</title>
<link href="css/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>
<jsp:include page="/header.jsp"></jsp:include>

<div id="sidebar">
	<jsp:include page="../menuAdmin.jsp"></jsp:include>
	<ul>	
		<li> <html:link href="PrepareHomeAdminAction.do">Amministrazione</html:link> </li>
		<li> <html:link href="PrepareCRUDTagAction.do?codOp=inserisci">Aggiungi Tag</html:link> </li>
	</ul>
</div>
<div id="content">
	<h3>Lista Tags</h3>
	${message }
	<c:if test="${listaTag!=null }">
	<display:table name="listaTag" requestURI="PrepareListaTagAction.do" uid="table" class="tablesorter">
			<display:column property="codTag" title="Cod_Tag" sortable="true"></display:column>
	  		<display:column property="descrizione" title="Descrizione" sortable="true"></display:column>
  			<display:column title="Azioni" sortable="true" >
  				<a href="PrepareCRUDTagAction.do?idTag=${table.idTag}&codOp=modifica"> <img class="azioni" alt="modifica" title="modifica" src="css/images/edit.png" /> </a>
  				<a href="PrepareCRUDTagAction.do?idTag=${table.idTag}&codOp=cancella"> <img class= "azioni" alt="cancella" title="cancella" src="css/images/cross.png"> </a>
	  		</display:column>	
		</display:table>
	</c:if>
</div>
	
<jsp:include page="/footer.jsp"></jsp:include>
</body>
</html>